<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/jsp/comm_css_include.jsp"%>
<link href="${basePath}/css/plugins/jqgriddemo/css/ui.jqgrid-bootstrap.min.css" rel="stylesheet" />
<!doctype html>
<html>
<head>
<style type="text/css">
	*{
		margin: 0px;
		padding: 0px;
		font-size: 12px;
	}
	
	.diepu-xhh-display
	{
	  display: none;
	}
</style>
</head>
<body class="gray-bg">

	<!-- 隐藏域 -->
	<input type="hidden" value="${replaceId}" id="replaceId" name="replaceId" />
	<input type="hidden" value="${busiId}" id="busiId" name="busiId" />
	<input type="hidden" value="${modeId}" id="modeId" name="modeId" />
	<input type="hidden" value="${ywBusinessVo.queryCreditApplyId}" id="queryCreditApplyId" name="queryCreditApplyId" />
	<!-- 隐藏域 -->

	<div class="container creditbody">
		<div class="iboxtitle">
			<span><i class="glyphicon glyphicon-map-marker"></i>&nbsp;</span>
			<a href="javascript:void(0)"></a>
		</div>
		<div class="ibox-content ibox-con">
			<!-- 财务审核二 -->
			<c:if test="${modeId eq 'M_dedksp'}">  
			   <div class="business-padding">
				<table cellpadding="0" cellspacing="0" border="0" class="infor-table">
					<tr>
						<td align="right">
							<input id="busiId" name="busiId" type="hidden" value="${ywBusinessDetail.id }" /> 
							<input id="queryCreditApplyId" name="queryCreditApplyId" type="hidden" value="${ywBusinessDetail.queryCreditApplyId }" /> 
							<input id="creditQueryId" name="creditQueryId" type="hidden" value="${ywBusinessDetail.creditQueryId }" />
							<input id="dealerId" name="dealerId" type="hidden" value="${ywBusinessDetail.dealerId }" />
							<input id="customerId" name="customerId" type="hidden" value="${ywBusinessDetail.customerId }" /> 
							<label class="control-label np">客户姓名：</label>
						</td>
						<td>
							<div class="control-div np" id="customerName">${ywBusinessDetail.customerName }</div>
						</td>
						<td align="right"><label class="control-label np">身份证号码：</label></td>
						<td>
							<div class="control-div np" id="customerNo">${ywBusinessDetail.customerNo }</div>
						</td>
					</tr>
					<tr>
						<td align="right"><label class="control-label np">业务编号：</label></td>
						<td>
							<div class="control-div np" id="busiCode">${ywBusinessDetail.busiCode }</div>
						</td>
						<td align="right"><label class="control-label">业务部门：</label></td>
						<td>
							<div class="control-div np" id="orgName">${ywBusinessDetail.orgName }</div>
						</td>
					</tr>
					<tr>
						<td align="right"><label class="control-label np">信贷专员：</label></td>
						<td>
							<div class="control-div np" id="salesmanName">${ywBusinessDetail.salesmanName }</div>
						</td>
						<td align="right"><label class="control-label np">订单类型：</label></td>
						<td>
							<div class="control-div np" id="channelType">${ywBusinessDetail.channelTypeDisplay}</div>
						</td>
					</tr>
			
					<tr>
						<td align="right"><label class="control-label np">经销商类别：</label>
						</td>
						<td>
							<div class="control-div np" id="dealerLevel">${ywBusinessDetail.dealerLevelDisplay}</div>
						</td>
						<td align="right"><label class="control-label np">经销商：</label></td>
						<td>
							<div class="control-div np" id="dealerName">${ywBusinessDetail.dealerName }</div>
						</td>
					</tr>
					<tr>
						<td align="right"><label class="control-label np">产品类别：</label></td>
						<td>
							<div class="control-div np" id="loanType">${ywBusinessLoan.loanTypeDisplay }</div>
						</td>
						<td align="right"><label class="control-label np">贷款银行：</label></td>
						<td>
							<div class="control-div np" id="loanBank" style="color: #DB4539;">${ywBusinessLoan.loanBankDisplay}</div>
						</td>
					</tr>
					<tr>
						<td align="right"><label class="control-label warn-red-bold">历史交易：</label></td>
						<td colspan="5">
							<div class="control-div warn-red-bold" id="historyBusiness">${historyBusiness }</div>
						</td>
					</tr>
				</table>
			</div>
			</c:if>  
			<c:if test="${!(modeId eq 'M_dedksp')}">  
			    <%@include file="/jsp/common_yw_with_loan_include.jsp"%>
			</c:if>  
		</div>
		<!-- 引入共有的页面 -->
		<%@include file="/jsp/fkshContent.jsp"%>
		
		<!-- 鑫合汇资料  签约资料 -->
		<div id="xhh-fujian" class="diepu-xhh-display">
			<div class="business-man">签约资料</div>
	        <div class="business-padding" style="border-bottom: 1px solid #e7eaec;">
		       <div class="zx-addimg">
		             <ul id='XXX_QIAN_SHU_HE_TONG'>
		                <li class="firstMuliUploadButton zx-upimg"><img src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre" style="display: block;" />
			            <div class="img-layer">
			              <div></div>
			              <span filelabelLabelSpan="${attachmentLabelNames.XHH_QIAN_SHU_HE_TONG_ZHAO_PIAN }">${attachmentLabelNameValues.XHH_QIAN_SHU_HE_TONG_ZHAO_PIAN }</span>
			            </div> 
			            <a href="javascript:;" class="file" onclick="uploadFileClicked(this,'img');" modeId="${modeIDTypeNames.ZLDJ }" ulId="XXX_QIAN_SHU_HE_TONG" customLabel="true" isAdd="true" fileLabelLi="${attachmentLabelNames.XHH_QIAN_SHU_HE_TONG_ZHAO_PIAN }" defaltLabelNameLi="${attachmentLabelNameValues.XHH_QIAN_SHU_HE_TONG_ZHAO_PIAN }" subId="" ></a>
			            </li>
			            <li class="firstMuliUploadButton zx-upimg"><img src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre" style="display: block;" />
			            <div class="img-layer">
			              <div></div>
			              <span filelabelLabelSpan="${attachmentLabelNames.XHH_QIAN_SHU_HE_TONG_SHI_PIN }">${attachmentLabelNameValues.XHH_QIAN_SHU_HE_TONG_SHI_PIN }</span>
			            </div> 
			            <a href="javascript:;" class="file" onclick="uploadFileClicked(this,'video');" modeId="${modeIDTypeNames.ZLDJ }" ulId="XXX_QIAN_SHU_HE_TONG" customLabel="true" isAdd="true" fileLabelLi="${attachmentLabelNames.XHH_QIAN_SHU_HE_TONG_SHI_PIN }" defaltLabelNameLi="${attachmentLabelNameValues.XHH_QIAN_SHU_HE_TONG_SHI_PIN }" subId="" ></a>
			          </li>
		            </ul>
		        </div>
	        </div>
			<div class="business-man">鑫合汇资料</div>
     		<div class="business-padding" style="border-bottom: 1px solid #E7EAEC;">
     			<div class="zx-addimg">
		      	 	<ul id='XXX_QIAN_SHU_HE_TONG_ZILIAO'>
		      	 		<li id="label58" name="label58">
		      	 			<img filelabel="${attachmentLabelNames.GONG_YIN_XYK_FENGQI_FUKUAN }" src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre ${attachmentLabelNames.GONG_YIN_XYK_FENGQI_FUKUAN }">
							<span filelabelDelSpan="${attachmentLabelNames.GONG_YIN_XYK_FENGQI_FUKUAN }" class="hidden bt-cancle glyphicon glyphicon-trash" onclick="deleleFileRecord(this,'${attachmentLabelNameValues.GONG_YIN_XYK_FENGQI_FUKUAN }',false);"></span>
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.GONG_YIN_XYK_FENGQI_FUKUAN }">${attachmentLabelNameValues.GONG_YIN_XYK_FENGQI_FUKUAN }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.GONG_YIN_XYK_FENGQI_FUKUAN }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.GONG_YIN_XYK_FENGQI_FUKUAN }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png">下载</a> <a type="button" class="abuttonStyleri"  onclick="showImg(this);">详情</a>
							</div> 
							<a href="javascript:void(0);" class="file"> <span>上传资料</span> <input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZLDJ }','XXX_QIAN_SHU_HE_TONG_ZILIAO', false, false);" /></a>
						</li>
						<li id="label62" name="label62"><img
							filelabel="${attachmentLabelNames.GONGYIN_XYK_SQB }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px"
							height="110px"
							class="zx-imgPre ${attachmentLabelNames.GONGYIN_XYK_SQB }">
							<span
							filelabelDelSpan="${attachmentLabelNames.GONGYIN_XYK_SQB }"
							class="hidden bt-cancle glyphicon glyphicon-trash"
							onclick="deleleFileRecord(this,'${attachmentLabelNameValues.GONGYIN_XYK_SQB }',false);"></span>
							<div class="img-layer">
								<div></div>
								<span
									filelabelLabelSpan="${attachmentLabelNames.GONGYIN_XYK_SQB }">${attachmentLabelNameValues.GONGYIN_XYK_SQB }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.GONGYIN_XYK_SQB }"
								class="hidden button-des">
								<a type="button"
								class="abuttonStylele"  filelabelADown="${attachmentLabelNames.GONGYIN_XYK_SQB }"
									download="shangchuanzhaopian.png"
									href="${basePath}/img/shangchuanzhaopian.png">下载</a> <a
								type="button" class="abuttonStyleri"  onclick="showImg(this);">详情</a>
							</div> <a href="javascript:void(0);" class="file"> <span>上传资料</span>
								<input type="file"
								accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg"
								onchange="uploadFile(this,'${modeIDTypeNames.ZLDJ }','XXX_QIAN_SHU_HE_TONG_ZILIAO', false, false);" />
						</a></li>
						<li id="label60" name="label60"><img
							filelabel="${attachmentLabelNames.XYK_TOUZHI_FUWU_HETONG }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px"
							height="110px"
							class="zx-imgPre ${attachmentLabelNames.XYK_TOUZHI_FUWU_HETONG }">
							<span
							filelabelDelSpan="${attachmentLabelNames.XYK_TOUZHI_FUWU_HETONG }"
							class="hidden bt-cancle glyphicon glyphicon-trash"
							onclick="deleleFileRecord(this,'${attachmentLabelNameValues.XYK_TOUZHI_FUWU_HETONG }',false);"></span>
							<div class="img-layer">
								<div></div>
								<span
									filelabelLabelSpan="${attachmentLabelNames.XYK_TOUZHI_FUWU_HETONG }">${attachmentLabelNameValues.XYK_TOUZHI_FUWU_HETONG }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.XYK_TOUZHI_FUWU_HETONG }"
								class="hidden button-des">
								<a type="button"
								class="abuttonStylele"  filelabelADown="${attachmentLabelNames.XYK_TOUZHI_FUWU_HETONG }"
									download="shangchuanzhaopian.png"
									href="${basePath}/img/shangchuanzhaopian.png">下载</a> <a
								type="button" class="abuttonStyleri"  onclick="showImg(this);">详情</a>
							</div> <a href="javascript:void(0);" class="file"> <span>上传资料</span>
								<input type="file"
								accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg"
								onchange="uploadFile(this,'${modeIDTypeNames.ZLDJ }','XXX_QIAN_SHU_HE_TONG_ZILIAO', false, false);" />
						</a></li>
						<li id="label61" name="label61"><img
							filelabel="${attachmentLabelNames.ANJIE_GUOQIAODAI_JIEKUAN_HETONG }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px"
							height="110px"
							class="zx-imgPre ${attachmentLabelNames.ANJIE_GUOQIAODAI_JIEKUAN_HETONG }">
							<span
							filelabelDelSpan="${attachmentLabelNames.ANJIE_GUOQIAODAI_JIEKUAN_HETONG }"
							class="hidden bt-cancle glyphicon glyphicon-trash"
							onclick="deleleFileRecord(this,'${attachmentLabelNameValues.ANJIE_GUOQIAODAI_JIEKUAN_HETONG }',false);"></span>
							<div class="img-layer">
								<div></div>
								<span
									filelabelLabelSpan="${attachmentLabelNames.ANJIE_GUOQIAODAI_JIEKUAN_HETONG }">${attachmentLabelNameValues.ANJIE_GUOQIAODAI_JIEKUAN_HETONG }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.ANJIE_GUOQIAODAI_JIEKUAN_HETONG }"
								class="hidden button-des">
								<a type="button"
								class="abuttonStylele"  filelabelADown="${attachmentLabelNames.ANJIE_GUOQIAODAI_JIEKUAN_HETONG }"
									download="shangchuanzhaopian.png"
									href="${basePath}/img/shangchuanzhaopian.png">下载</a> <a
								type="button" class="abuttonStyleri"  onclick="showImg(this);">详情</a>
							</div> <a href="javascript:void(0);" class="file"> <span>上传资料</span>
								<input type="file"
								accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg"
								onchange="uploadFile(this,'${modeIDTypeNames.ZLDJ }','XXX_QIAN_SHU_HE_TONG_ZILIAO', false, false);" />
						</a></li>
						<li id="label64" name="label64"><img
							filelabel="${attachmentLabelNames.AN_JIE_RIBAOBIAO }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px"
							height="110px"
							class="zx-imgPre ${attachmentLabelNames.AN_JIE_RIBAOBIAO }">
							<span
							filelabelDelSpan="${attachmentLabelNames.AN_JIE_RIBAOBIAO }"
							class="hidden bt-cancle glyphicon glyphicon-trash"
							onclick="deleleFileRecord(this,'${attachmentLabelNameValues.AN_JIE_RIBAOBIAO }',false);"></span>
							<div class="img-layer">
								<div></div>
								<span
									filelabelLabelSpan="${attachmentLabelNames.AN_JIE_RIBAOBIAO }">${attachmentLabelNameValues.AN_JIE_RIBAOBIAO }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.AN_JIE_RIBAOBIAO }"
								class="hidden button-des">
								<a type="button"
								class="abuttonStylele"  filelabelADown="${attachmentLabelNames.AN_JIE_RIBAOBIAO }"
									download="shangchuanzhaopian.png"
									href="${basePath}/img/shangchuanzhaopian.png">下载</a> <a
								type="button" class="abuttonStyleri"  onclick="showImg(this);">详情</a>
							</div> <a href="javascript:void(0);" class="file"> <span>上传资料</span>
								<input type="file"
								accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg"
								onchange="uploadFile(this,'${modeIDTypeNames.ZLDJ }','XXX_QIAN_SHU_HE_TONG_ZILIAO', false, false);" />
						</a></li>
						<li id="label59" name="label59"><img
							filelabel="${attachmentLabelNames.ZGYH_XYK_FENGQI_FUKUAN }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px"
							height="110px"
							class="zx-imgPre ${attachmentLabelNames.ZGYH_XYK_FENGQI_FUKUAN }">
							<span
							filelabelDelSpan="${attachmentLabelNames.ZGYH_XYK_FENGQI_FUKUAN }"
							class="hidden bt-cancle glyphicon glyphicon-trash"
							onclick="deleleFileRecord(this,'${attachmentLabelNameValues.ZGYH_XYK_FENGQI_FUKUAN }',false);"></span>
							<div class="img-layer">
								<div></div>
								<span
									filelabelLabelSpan="${attachmentLabelNames.ZGYH_XYK_FENGQI_FUKUAN }">${attachmentLabelNameValues.ZGYH_XYK_FENGQI_FUKUAN }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.ZGYH_XYK_FENGQI_FUKUAN }"
								class="hidden button-des">
								<a type="button"
								class="abuttonStylele"  filelabelADown="${attachmentLabelNames.ZGYH_XYK_FENGQI_FUKUAN }"
									download="shangchuanzhaopian.png"
									href="${basePath}/img/shangchuanzhaopian.png">下载</a> <a
								type="button" class="abuttonStyleri"  onclick="showImg(this);">详情</a>
							</div> <a href="javascript:void(0);" class="file"> <span>上传资料</span>
								<input type="file"
								accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg"
								onchange="uploadFile(this,'${modeIDTypeNames.ZLDJ }','XXX_QIAN_SHU_HE_TONG_ZILIAO', false, false);" />
						</a></li>
						<li id="label63" name="label63"><img
							filelabel="${attachmentLabelNames.ZGYH_XYK_SQB }"
							src="${basePath}/img/shangchuanzhaopian.png" width="110px"
							height="110px"
							class="zx-imgPre ${attachmentLabelNames.ZGYH_XYK_SQB }">
							<span
							filelabelDelSpan="${attachmentLabelNames.ZGYH_XYK_SQB }"
							class="hidden bt-cancle glyphicon glyphicon-trash"
							onclick="deleleFileRecord(this,'${attachmentLabelNameValues.ZGYH_XYK_SQB }',false);"></span>
							<div class="img-layer">
								<div></div>
								<span
									filelabelLabelSpan="${attachmentLabelNames.ZGYH_XYK_SQB }">${attachmentLabelNameValues.ZGYH_XYK_SQB }</span>
							</div>
							<div filelabelDiv="${attachmentLabelNames.ZGYH_XYK_SQB }" class="hidden button-des">
								<a type="button" class="abuttonStylele"  filelabelADown="${attachmentLabelNames.ZGYH_XYK_SQB }" download="shangchuanzhaopian.png" href="${basePath}/img/shangchuanzhaopian.png">下载</a> <a
								type="button" class="abuttonStyleri"  onclick="showImg(this);">详情</a>
							</div> 
							<a href="javascript:void(0);" class="file"> <span>上传资料</span>
								<input type="file" accept="image/gif,image/jpeg,image/bmp,image/png,image/jpg" onchange="uploadFile(this,'${modeIDTypeNames.ZLDJ }','XXX_QIAN_SHU_HE_TONG_ZILIAO', false, false);" />
							</a> 
						</li>
						<li class="firstMuliUploadButton zx-upimg"><img src="${basePath}/img/shangchuanzhaopian.png" width="110px" height="110px" class="zx-imgPre" style="display: block;" />
							<div class="img-layer">
								<div></div>
								<span filelabelLabelSpan="${attachmentLabelNames.XHH_ZILIAO_GENGDUO }">${attachmentLabelNameValues.XHH_ZILIAO_GENGDUO }</span>
							</div> 
							<a href="javascript:;" class="file" onclick="uploadFileClicked(this,'img');" modeId="${modeIDTypeNames.ZLDJ }" ulId="XXX_QIAN_SHU_HE_TONG_ZILIAO" customLabel="true" isAdd="true" fileLabelLi="${attachmentLabelNames.XHH_ZILIAO_GENGDUO }" defaltLabelNameLi="${attachmentLabelNameValues.XHH_ZILIAO_GENGDUO }" subId="" ></a>
						</li>
		      	 	</ul>
         		</div>
     		</div>
		</div>
		<!-- 车辆信息 -->
		<div class="business-man" id="DISPLAY007001" style="display: none;">车辆信息</div>
			<div class="padding-nono" id="DISPLAY007002" style="display: none;border-bottom: 1px solid #E7EAEC;">
			  <c:if test="${not empty ywBusinessCar}">
			       <table cellpadding="0" cellspacing="0" border="0" class="buyinfor-table">
					<tr>	
						<td align="right">
							<label class="control-label np">车辆类别：</label>
						</td>
						<td>
							<mytag:selectTag  map="${carCategoryType }" selected="${ywBusinessCar.categoryCar }" others="class='select-control' required='required' disabled='disabled'"/>
						</td>
						
						<td align="right">
							<label class="control-label np">车辆颜色：</label>
						</td>
						<td>
							<mytag:selectTag  map="${carColorType }" selected="${ywBusinessCar.colorCar }" others="class='select-control' required='required' disabled='disabled'"/>
						</td>
						<td align="right">
							<label class="control-label np">合格证号：</label>
						</td>
						<td>
							<input required="required" placeholder="合格证号" name="numQualified" class="form-control" value="${ywBusinessCar.numQualified }" readonly="readonly"/>
						</td>
					</tr>
					<tr>		
						<td align="right">
							<label class="control-label">品牌：</label>
						</td>
						<td>
							<mytag:selectTag  map="${juheBrands }" selected="${ywBusinessCar.carBrand }" others="class='select-control' required='required' disabled='disabled'" firstoption="true"/>
						</td>
						
						
						<td align="right">
							<label class="control-label">车系：</label>
						</td>
						<td>
							<input id="power" name="power"  class="form-control" required="required" placeholder="车系" value="${ywBusinessCar.nameCarSeries}"readonly="readonly" />
						</td>
						
						<td align="right">
							<label class="control-label">车型：</label>
						</td>
						<td class="td-width">
							<input id="power" name="power"  class="form-control" required="required" placeholder="车型" value="${ywBusinessCar.nameCarModel}"readonly="readonly" />
						</td>
					</tr>
					<tr>	
						<td align="right">
							<label class="control-label np">排量(L)：</label>
						</td>
						<td>
							<input id="displacement" name="displacement" required="required" placeholder="排量" class="form-control" value="${ywBusinessCar.displacement }" readonly="readonly"/>
						</td>
						
						<td align="right">
							<label class="control-label np">功率：</label>
						</td>
						<td>
							<input id="power" name="power"  class="form-control" required="required" placeholder="功率" value="${ywBusinessCar.power }"readonly="readonly" />
						</td>
						<td align="right">
							<label class="control-label np">车架号：</label>
						</td>
						<td>
							<input id="vin" name="vin" class="form-control" required="required" placeholder="车架号" value="${ywBusinessCar.vin }" readonly="readonly"/>
						</td>
					</tr>
					<tr>	
						<td align="right">
							<label class="control-label np">发动机号：</label>
						</td>
						<td>
							<input id="numEngine" name="numEngine"  required="required" placeholder="发动机号"  class="form-control"  value="${ywBusinessCar.numEngine }" readonly="readonly"/>
						</td>
						
						<td align="right">
							<label class="control-label np">底盘后6位：</label>
						</td>
						<td>
							<input id="numChassisSix" name="numChassisSix" class="form-control" type="text" maxlength="6" minlength="6" required="required" placeholder="底盘后6位"  value="${ywBusinessCar.numChassisSix }" readonly="readonly"/>
						</td>
						<td align="right">
							<label class="control-label np">开票单位：</label>
						</td>
						<td>
							<input id="companyBill" name="companyBill" class="form-control" required="required" placeholder="开票单位" value="${ywBusinessCar.companyBill }" readonly="readonly"/>
						</td>
					</tr>
					<tr>	
						<td align="right">
							<label class="control-label np">发票日期：</label>
						</td>
						<td>
							<input id="dateBill" required="required" placeholder="发票日期" name="dateBill" class="form-control" value="<fmt:formatDate value='${ywBusinessCar.dateBill }' pattern='yyyy-MM-dd'/>" readonly="readonly"/>
						</td>
						
						<td align="right">
							<label class="control-label np">发票号：</label>
						</td>
						<td>
							<input id="numBill" name="numBill" required="required" placeholder="发票号"  class="form-control" value="${ywBusinessCar.numBill }" readonly="readonly"/>
						</td>
						<td align="right">
							<label class="control-label np">发票地区：</label>
						</td>
						<td>
							<input id="areaBill" name="areaBill" required="required" placeholder="发票地区" class="form-control" value="${ywBusinessCar.areaBill }" readonly="readonly"/>
						</td>
					</tr>
					<tr>	
						<td align="right">
							<label class="control-label np">公告型号：</label>
						</td>
						<td>
							<input id="noticeModel" name="noticeModel" required="required" placeholder="公告型号"  class="form-control" value="${ywBusinessCar.noticeModel }" readonly="readonly"/>
						</td>
						<td align="right">
							<label class="control-label np">开票价格：</label>
						</td>
						<td>
							<input id="price" name="price" required="required" placeholder="开票价格"  class="form-control" value="${ywBusinessCar.price }" readonly="readonly"/>
						</td>
					</tr>
				</table>
			</c:if>	
		</div>	 
		
		<!-- 历史审批 -->
		<div id="outersp" class="clear-both">
			<ul id="tabmy">
				<li class="current">我的审批</li>
				<li>历史审批</li>
				<ul class="suoding">
					<li>
						<div id="fkshsuo" class="fkshsuo" name="fkshsuo" onclick="fkshSuoDing();" title="解锁"></div>
					</li>
				</ul>
			</ul>
			<div id="contentmy">
				<div class="ul-style" style="display: block;">
					<form class="form-horizontal business-form" id="commentForm">
						<div class="business-padding">
							<div id="auditPre" name="auditPre" style="display: none;">
								<ul class="myul">
									<li class="myul-lia np">省公司预审详情：</li>
									<li class="myul-lib"><textarea id="pre_audit_detail" name="pre_audit_detail" rows="3" cols="" class="textarea-control"></textarea></li>
								</ul>
								<ul class="myul">
									<li class="myul-lia np">省公司预审批注：</li>
									<li class="myul-lib"><textarea id="pre_audit_postil" name="pre_audit_postil" rows="3" cols="" class="textarea-control"></textarea></li>
								</ul>
								<ul class="myul">
									<li class="myul-lia np">&nbsp;</li>
									<li class="myul-lib">
										<button type="button" class="btn dpbtn_green " onclick="approval('auditPre');">保存预审</button>
										<span class="style-red">&nbsp;&nbsp;&nbsp;注：保存后请解锁退出！</span>
									</li>
								</ul>
							</div>
							<ul class="myul">
								<li class="myul-lia np">审核详情：</li>
								<li class="myul-lib">
									<textarea id="audit_detail" name="audit_detail" rows="3" cols="" class="textarea-control"></textarea>
								</li>
							</ul>
							<ul class="myul">
								<li class="myul-lia np">审核批注：</li>
								<li class="myul-lib">
									<textarea id="audit_postil" name="audit_postil" rows="3" cols="" class="textarea-control"></textarea>
									<!-- <div class="ibox-content no-padding">
										<div class="summernote2" id="audit_postil" name="audit_postil"></div>
									</div> -->
								</li>
							</ul>
							<ul class="myul">
								<li class="myul-lia np">&nbsp;</li>
								<li class="myul-lib">
									<button type="button" class="btn dpbtn_green " onclick="updateAuditDetail();">保存审核批注</button>
								</li>
							</ul>
							<ul class="myul">
								<li class="myul-lia np">加装GPS：</li>
								<li class="myul-lic"><input class="form-control" type="number" id="addGps_value_extras" name="addGps_value_extras" /></li>
								<li class="myul-lia np">征信押金：</li>
								<li class="myul-lic"><input class="form-control" type="number" id="addGeposit_value_extras" name="addGeposit_value_extras" /></li>
								<li class="myul-lia np">收费变通：</li>
								<li class="myul-lic"><input class="form-control" type="text" id="flexibleCharge" name="flexibleCharge" maxlength="64"/></li>
							</ul>
							<ul class="myul">
								<li class="myul-lia np">延迟垫款：</li>
								<li class="myul-lic" style="width: 360px;">
									<label> 
										<input type="checkbox" id="box_order" name="box_order" />垫款在银行放款后
									</label>
								</li>
							</ul>
							<ul class="myul">
								<li class="myul-lia np">&nbsp;</li>
								<li class="myul-lib">
									<button type="button" class="btn dpbtn_green " onclick="gpsOk();" id="gpsPreservation">保存附加条件</button>
									<span style="color: #F05050;font-size: 14px;" id="gpsPreservationSpan">&nbsp;(该信息需要单独保存)</span>
								</li>
							</ul>
							<ul class="myul">
								<li class="myul-lia np">&nbsp</li>
								<li>
									<button type="button" class="btn dpbtn_green" onclick="approval('pass');" id="pass" style="display: none;">过审</button>
									<button type="button" class="btn dpbtn_red" onclick="eventFail();" id="fail" style="display: none;">不过审</button>
									<button type="button" class="btn dpbtn_red"  onclick="approval('editback');" id="editback" style="display: none;">退回修改</button> 
									<button type="button" class="btn dpbtn_red" onclick="tuihui();" id="auditback" style="display: none;">退回审核</button> 
									<button type="button" class="btn dpbtn_green" onclick="approval('lesspass');" id="lesspass" style="display: none;">欠资料过审</button> 
									<button type="button" class="btn dpbtn_blue" onclick="reportFormZpp();" id="reportForm" name="reportForm" style="display: none;">查看按揭日报表</button>
									<button type="button" class="btn dpbtn_blue" onclick="downloadXhhFile();" id="downloadXhh" name="downloadXhh" style="display: none;">下载鑫合汇附件</button>
								</li>
							</ul>
						</div>
					</form>
				</div>
				<div class="ul-style">
					<form class="form-horizontal business-form">
						<div class="business-padding" id="historical_approval" name="historical_approval">&nbsp;</div>
					</form>
				</div>
			</div>
		</div>
		<div style="display: none; width: 180px;margin:0 auto;" id="falseId">
			<br/>
			<div style="font-weight: 500;">请选择退单原因：</div>
			<br/>
			<ul>
				<li><label><input type="radio" name="falseRadio" value="01"/>虚假资料</label></li>
				<br/>
				<li><label><input type="radio" name="falseRadio" value="02"/>资质不足</label></li>
				<br/>
				<li><label><input type="radio" name="falseRadio" value="99"/>其他</label><input class="form-control" type="text" id="reason_audit_false_name" name="reason_audit_false_name" placeholder="请输入其他" maxlength="125"/></li>
			</ul>
			<br/>
			<button type="button" class="btn dpbtn_blue " onclick="approval('fail');">不过审</button>
		</div>
	</div>
	
	<!-- public quote -->
	<%@include file="/jsp/comm_js_include.jsp"%>
	<!-- validate js -->
	<script type="text/javascript" src="${basePath}/js/fksh/validate.js" charset="utf-8"></script>
	<!-- jqGrid -->
	<script type="text/javascript" charset="utf-8" src="${basePath}/js/plugins/jqgriddemo/js/jquery.jqGrid.min.js"></script>
	<script type="text/javascript" charset="utf-8" src="${basePath}/js/plugins/jqgriddemo/js/grid.locale-cn.min.js"></script>
	
	<!-- 
 	    作者：程立勇
 	    描述：js脚本
 	 -->
	<script type="text/javascript">
 	
	 	$(document).ready(function () {
	        var $limy = $('#tabmy>li');
			var $ulmy = $('#contentmy .ul-style');
	        $limy.click(function(){
				var $this = $(this);
				var $t = $this.index();
				$limy.removeClass();
				$this.addClass('current');
				$ulmy.css('display','none');
				$ulmy.eq($t).css('display','block');
			});
	        
	        //初始加载
	        initData();
	    });
	 	
	 	//初始化加载
	 	var initData = function()
	 	{
	 		var busiId = $('#busiId').val();
	 		var modeId = $('#modeId').val();
	 		
	 		//如果是鑫合汇 附件资料显示其他隐藏
	 		if(modeId == 'M_xhhzsys')
	 		{
	 			$("#xhh-fujian").show();
	 		}
	 		
	 		$.dpAjax({
		   		url:'${basePath}/FengKongShenHeController/diepuFengKongShenHeAuditListV001',
		   		data:{
		   			"busiId":busiId,
		   			"modeId":modeId
		   		},
				success: function(datas)
				{
			 	  if(datas.flag == "100100")
			 	  {
			 		  var fkAuditList = datas.fkAuditList;
			 		  if(fkAuditList)
			 		  {
			 			  var audit_detail = fkAuditList.auditDetail;
				 		  var audit_postil =  (fkAuditList.auditPostil).replace(/<\/?.+?>/g,"");
				 		  var dds = audit_postil.replace(/&nbsp;/g,""); 
				 		  //var dd=audit_postil.replace(/<\/?.+?>/g,"");
				 		  //var dds=dd.replace(/&nbsp;/g,""); 
				 		  $('#audit_detail').text(audit_detail);
				 		  $('#audit_postil').text(dds);
			 		  }
			 		  
			 		  var fkPreAuditInfo = datas.fkPreAuditInfo;
			 		  if(fkPreAuditInfo)
			 		  {
			 			  $('#pre_audit_detail').val(fkPreAuditInfo.preAuditDetail);
			 			  $('#pre_audit_postil').val(fkPreAuditInfo.preAuditPostil);
			 		  }
			 		  
			 		  var otherAuditInfo = datas.otherAuditInfo;
			 		  if(otherAuditInfo)
			 		  {
			 			  var content = '';
			 			  var d = otherAuditInfo;
				 		  for(var i=0;i<d.length;i++)
				 		  {
				 			  var audit_name = d[i].auditName
				 			  var org_name = d[i].orgName
				 			  var creator_name = d[i].creatorName;
				 			  var created = d[i].created;
				 			  var audit_postil = d[i].auditPostil;
			 			      content += '<ul class="course-table">'
				 			  			  + '<li  class="rgb-color">'+audit_name+'</li>'
				 			  			  + '<li class="course-tablelib">'
				 			  			  	+ '<p class="course-time">'+org_name+' &nbsp; '+creator_name+' &nbsp;'+created+'</p>'
				 			  			  	+ audit_postil
				 			  			  + '</li>'
				 			  		  + '</ul>';
				 		  }
				 		  $('#historical_approval').html(content);
			 		  }
			 		  
			 		  //加装GPS  加收押金
			 		  var gpsResult = datas.gpsResult;
			 		  if(gpsResult && gpsResult.length > 0)
			 		  {
			 			 for(var i=0;i<gpsResult.length;i++)
			 			  {
			 				  var type_extras = gpsResult[i].typeExtras;
			 				  var code_extras = gpsResult[i].codeExtras;
			 				  var value_extras = gpsResult[i].valueExtras
			 				  if(code_extras == "AddGps" && type_extras == "Audit")
			 				  {
			 					  $('#addGps_value_extras').val(value_extras);
			 				  }
			 				  else if(code_extras == "AddGeposit" && type_extras == "Audit")
			 				  {
			 					 $('#addGeposit_value_extras').val(value_extras);
			 				  }
			 				  else if(code_extras == "IsSpecialOrder" && type_extras == "Audit")
			 				  {
			 					  if(value_extras == "1")
			 					  {
			 						 document.getElementById("box_order").checked = true;
			 					  }
			 				  }
			 				  else if(code_extras == "FlexibleCharge" && type_extras == "Audit")
			 				  {
			 					 $('#flexibleCharge').val(value_extras);
			 				  }
			 			  }
			 		  }
			 		  
			 		  //是否显示GPS保存按钮
			 		  var gpsPreservation = datas.gpsPreservation;
			 		  if(gpsPreservation)
			 		  {
			 			  if(gpsPreservation == "no")
			 			  {
			 				  $('#gpsPreservation').hide();
			 				  $('#gpsPreservationSpan').hide();
			 			  }
			 		  }
			 		  
			 		  //GPS是否禁用只能查看
			 		  var gpsDisable = datas.gpsDisable;
			 		  if(gpsDisable)
			 		  {
			 			  if(gpsDisable == "no")
			 			  {
			 				 $('#addGps_value_extras').attr("readonly","readonly");
			 				 $('#addGeposit_value_extras').attr("readonly","readonly");
			 				 $('#box_order').attr("disabled","disabled");
			 				 $('#flexibleCharge').attr("disabled","disabled");
			 			  }
			 		  }
			 		  
			 		  //车辆信息
			 		  var DISPLAY007 = datas.DISPLAY007;
			 		  if(DISPLAY007)
			 		  {
			 			 if(DISPLAY007 == "yes")
			 			 {
			 				 $('#DISPLAY007001').show();
			 				 $('#DISPLAY007002').show();
			 			 }
			 		  }
			 		  
			 		  //鑫合汇下载附件
			 		  var DISPLAY008 = datas.DISPLAY008;
			 		  if(DISPLAY008)
			 		  {
			 			  if(DISPLAY008 == "yes")
			 			  {
			 				  $('#downloadXhh').show();
			 			  }
			 		  }
			 		  
			 		  //按钮权限显示隐藏
			 		  var eventPasses = datas.eventPasses;
			 		  if(eventPasses && eventPasses.length > 0)
			 		  {
			 			  for(var i=0;i<eventPasses.length;i++)
			 			  {
			 				  if(eventPasses[i].event == "pass")
			 				  {
			 					  $('#pass').show();
			 				  }
			 				  else if(eventPasses[i].event == "fail")
			 				  {
			 					  $('#fail').show();
			 				  }
			 				  else if(eventPasses[i].event == "editback")
			 				  {
			 					  $('#editback').show();
			 				  }
			 				  else if(eventPasses[i].event == "auditback")
			 				  {
			 					  $('#auditback').show();
			 				  }
			 				  else if(eventPasses[i].event == "lesspass")
			 				  {
			 					  $('#lesspass').show();
			 				  }
			 				  else if(eventPasses[i].event == "auditPre")
			 				  {
			 					  $('#auditPre').show();
			 				  }
			 				  else if(eventPasses[i].event == "auditReport")
			 				  {
			 					  $('#reportForm').show();
			 				  }
			 			  }
			 		  }
			 		  
			 		  //欠资料过审禁用
			 		  var ywBusiness = datas.ywBusiness;
			 		  if(ywBusiness)
			 		  {
			 			  if(ywBusiness.lessInformationStatus == "10")
			 			  {
			 				$('#pass').attr("disabled","disabled");
			 			  }
			 		  }
			 		  
			 		  //鑫合汇附件
			 		  var xhhFile = datas.xhhFile;
			 		  if(null == xhhFile || xhhFile == "" || xhhFile.length == 0)
			 		  {
				 			$('#label58').show();
				 			$('#label62').show();
				 			$('#label60').show();
				 			$('#label61').show();
				 			$('#label64').show();
				 			$('#label59').show();
				 			$('#label63').show();
			 		  }		 		  
			 		  
			 		  if(xhhFile && xhhFile.length > 0)
			 		  {
			 			  for(var i=0;i<xhhFile.length;i++)
			 			  {
			 				 if(xhhFile[i].file_label == "label58")
			 				 {
			 					 $('#label58').hide();
			 				 }
			 				 else if(xhhFile[i].file_label == "label62")
			 				 {
			 					 $('#label62').hide();
			 				 } 
			 				 else if(xhhFile[i].file_label == "label60")
			 				 {
			 					 $('#label60').hide();
			 				 } 
			 				 else if(xhhFile[i].file_label == "label61")
			 				 {
			 					 $('#label61').hide();
			 				 } 
			 				 else if(xhhFile[i].file_label == "label64")
			 				 {
			 					 $('#label64').hide();
			 				 } 
			 				 else if(xhhFile[i].file_label == "label59")
			 				 {
			 					 $('#label59').hide();
			 				 } 
			 				 else if(xhhFile[i].file_label == "label63")
			 				 {
			 					 $('#label63').hide();
			 				 } 
			 			  }
			 		  }
			 		  return;
				  }
				  layer.msg(datas.message, {icon: 2});
				}
		   	});
	 	}
	 	
	 	//按揭日报表
	 	var reportFormZpp = function()
	 	{
	 		var busiId = $('#busiId').val();
	 		layer.open({
	 			  type: 2,
	 			  title: '按揭日报表',
	 			  shadeClose: true,
	 			  shade: 0.8,
	 			  area: ['80%', '80%'],
	 			  content: '${basePath}/YwShouLiView/getBaoBiaoListView?busiId='+busiId+'&unitCode=&iden=fksh'
	 		});
	 	}
	 	
	 	//保存gps
	 	var gpsOk = function()
	 	{
	 		var box_order = document.getElementById("box_order").checked;
	 		var box = 0;
	 		if(box_order)
	 		{
	 			box = 1;
	 		}
	 		var busiId = $('#busiId').val();
	 		var addGps_value_extras = $('#addGps_value_extras').val();
	 		var addGeposit_value_extras = $('#addGeposit_value_extras').val();
	 		var replaceId = $('#replaceId').val();
	 		var flexibleCharge = $('#flexibleCharge').val();
	 		
	 		//询问框
	 		layer.confirm('确认执行本次操作？操作人：<span style="color:#BD1723;">${current_user_key.uname}</span>', {
	 		  btn: ['确定','取消'] //按钮
	 		}, function(){
	 			layer.msg('正在执行',{icon: 16,shade: 0.15});
	 			layer.closeAll();
		 		$.dpAjax({
		 			url:'${basePath}/FengKongShenHeController/saveYwFuJianBiao',
		 			data:{
		 				"replaceId":replaceId,
		 				"busiId":busiId,
		 				"addGps_value_extras":addGps_value_extras,
		 				"addGeposit_value_extras":addGeposit_value_extras,
		 				"boxOrder":box,
		 				"flexibleCharge":flexibleCharge
		 			},
		 			success: function(datas)
		 			{
		 				  if(datas.flag == "100100")
		 				  {
		 					  layer.msg("保存成功！", {icon: 6});
		 					  return;
		 				  }
		 				  layer.msg(datas.message, {icon: 5});
		 		     }
		 		});
	 		}, function(){
	 			layer.msg('已取消本次操作！', {icon: 6});
	 		});
	 	}
	 	
	 	//修改批注信息
	 	var updateAuditDetail = function()
	 	{
	 		var busiId = $('#busiId').val();
	 		var modeId = $('#modeId').val();
	 		var audit_detail = $('#audit_detail').val();
	 		var audit_postil = $('#audit_postil').val();
	 		
	 		//询问框
	 		layer.confirm('确认执行本次操作？操作人：<span style="color:#BD1723;">${current_user_key.uname}</span>', {
	 		  btn: ['确定','取消'] //按钮
	 		}, function(){
	 			layer.closeAll();
	 			$.dpAjax({
		 			url:'${basePath}/FengKongShenHeController/insertOtherAudit',
		 			data:{
		 				"modeId":modeId,
		 				"busiId":busiId,
		 				"auditDetail":audit_detail,
		 				"auditPostil":audit_postil,
		 			},
		 			success: function(datas)
		 			{
		 				  if(datas.flag == "100100")
		 				  {
		 					  layer.msg("批注更新成功！", {icon: 6});
		 					  return;
		 				  }
		 				  layer.msg(datas.message, {icon: 5});
		 		     }
		 		});
	 		}, function(){
	 			layer.msg('已取消本次操作！', {icon: 6});
	 		});
	 	}
	 	
	 	
	 	//解锁
	 	var num = 1;
	 	var fkshSuoDing = function()
	 	{
 		  if(num == 1)
 		  {  
 				//询问框
 		 		layer.confirm('确认执行本次操作？操作人：<span style="color:#BD1723;">${current_user_key.uname}</span>', {
 		 		  btn: ['确定','取消'] //按钮
 		 		}, function(){
 		 			layer.closeAll();
 		 		   var replaceId = $('#replaceId').val();
 	 			   $.dpAjax({
 			 			url:'${basePath}/FengKongShenHeController/fengKongShenHeJieSuo',
 			 			data:{"replaceId":replaceId},
 			 			success: function(datas)
 			 			{
 			 				  if(datas.flag == "100100")
 			 				  {		
 			 			 		  $("#fkshsuo").css("background",'url(../img/lock-open-icon.png)')
 			 					  layer.msg("解锁成功！", {icon: 6});
 			 					  num++;
 			 					  return;
 			 				  }
 			 				  if(datas.flag == "100200")
 			 				  {
 			 					  alert(JSON.stringify(datas));
 			 					  return;
 			 				  }
 			 				  layer.msg(datas.message, {icon: 5});
 			 		     }
 		 		    });
 		 			
 		 		}, function(){
 		 			layer.msg('已取消本次操作！', {icon: 6});
 		 		});
 			}
 		  else
 		  {
 			 layer.msg("已经解锁,无需再次解锁！", {icon: 5});
 			 return;
 		  } 
	  }
	 	
	  var tuihui = function()
	  {
	 	   var content = '<div class="business-padding">' 
				+'<div class="jqGrid_wrapper">'
					+'<table id="table_list_10"></table>'
					+'<div id="pager_list_10"></div>'
				+'</div></br>'
				+'<div>备注</div>'
				+'<textarea id="auditRemarks" name="auditRemarks" rows="3" cols="" class="textarea-control"></textarea>'
				+'<table cellpadding="0" cellspacing="0" border="0" bordercolor="#3B95C8"  width="100%">'
					+'<tr>'
					+'	<td width="100%" align="center">'
					+'		 <div class="ibox-content">'
					+'              <button type="button" class="btn dpbtn_green" onclick="approval(\'auditback\');">确定</button>'
					+'              &nbsp;'
					+'       </div>'
					+'	</td>'
					+'</tr>'
				+'</table>'
			+'</div>';
 		
	 		//页面层
	 		layer.open({
	 		  type: 1,
	 		  skin: 'layui-layer-rim', //加上边框
	 		  area: ['800px', '580px'], //宽高
	 		  content: content
	 		});
	 		
		  	  var win = 540 / 2 - 10;
	 		  $.jgrid.defaults.styleUI = 'Bootstrap';
	 		  var busiId = $('#busiId').val();
	 		  var modeId = $('#modeId').val();
			  jQuery("#table_list_10").jqGrid
			  ({
				url:'${basePath}/QueryEntryController/diepuQueryEntry?busiId='+busiId+"&modeIdName=fkshapprovalReturn&modeId="+modeId,
				datatype : "json",
			    postData:
		        {},
		        colNames : [ 'replaceId','busiId','mode_id','审批名称', '审批详情'],
		        colModel : [ 
		                    {name: 'replaceId',index: '',hidden:true},
		                    {name: 'busiId',index: '',hidden:true},
		                    {name: 'modeId',index: '',hidden:true},
		                    {name: 'auditName',index: '',width: 120,align: "center"},
		                    {name: 'auditDetail',index: '',width: 500,align: "center"},
		                   ],
	              mtype : "post",
	              height: 220,
	              width:750,  
	              autowidth: false,
	              shrinkToFit: false,
	              rowNum: 7,
	              rowList: [7],
	              viewrecords: true,
	              pager: "#pager_list_10",
	              multiselect: true,  
	              multiboxonly:true,
	              jsonReader : {
	            	  root:"result.rows",
	            	  page: "result.page",
	            	  total: "result.total",
	            	  records: "result.records",
	            	  repeatitems: false,
	            	  id: "replaceId" 
	              },
	              loadComplete:function(datas){
	            	  if (datas.flag == "100100")
	            	  {
	                      layer.msg("查询成功!", {icon: 6, time: 1000});
	                      return;
	                  }
	            	  if(datas.flag == '100802')
	            	  {
	    				  top.location.href = thisLoginUrl;
	    				  return;
	    			  }
	            	  layer.msg(datas.message, {icon: 2});
	              }
		      });
	 	}
	 	
	  //不过审
	  var eventFail = function()
	  {
 		//页面层
 		layer.open({
 		  title:"不过审确认",
 		  type: 1,
 		  skin: 'layui-layer-rim', //加上边框
 		  area: ['300px', '300px'], //宽高
 		  content: $('#falseId')
 		});
	  }
	 	
	  //审批
	  var approval = function(event)
	  {
		  var replaceId = $('#replaceId').val();
 		  var busiId = $('#busiId').val();
 		  var modeId = $('#modeId').val();
 		  var audit_detail = $('#audit_detail').val();
 		  var audit_postil = $('#audit_postil').val();
 		  var org_code = '${current_user_key.orgId}';
 		  var org_name = '${current_user_key.orgName}';
 		  var auditRemarks = $('#auditRemarks').val();
	 		if(auditRemarks == ""){
	 			layer.msg('备注不能为空！', {icon: 5});
	 			return false;
	 		} 
		  if(event == "auditback")
		  {
				var rowData = jQuery('#table_list_10').jqGrid('getGridParam','selarrrow');  
		    	if(rowData.length < 1)
		    	{  
		    		layer.msg("请选择要退回菜单！", {icon: 5});
					return;
		    	}
		    	
		    	if(rowData.length > 1)
		    	{
		    		layer.msg("只能选择一列菜单退回！", {icon: 5});
					return;
		    	}
		    	
		    	modeId +="@@@"+jQuery('#table_list_10').jqGrid('getCell',rowData[0],'modeId'); 
		  }
		 
	    	
		 var reason_audit_false = "";
		 var reason_audit_false_name = "";
		 
		 if(event == "fail")
		 {
	 		var falseRadio = document.getElementsByName("falseRadio");
	 		for(var i=0;i<falseRadio.length;i++)
	 		{
	 			if(falseRadio[i].checked)
				{
	 				reason_audit_false = falseRadio[i].value;
					break;
				}
	 		}
	 		if(!reason_audit_false)
	 		{
	 			layer.msg('请选择退回的原因！', {icon: 6});
	 			return;
	 		}
	 		
	 		reason_audit_false_name = $('#reason_audit_false_name').val();
	 		
	 		if(reason_audit_false && reason_audit_false == "99" && reason_audit_false_name == "")
	 		{
	 			layer.msg('请输入其他退回原因！', {icon: 6});
	 			return;
	 		}	
	 		
	 		
	 		
	 		if(reason_audit_false == "01")
	 		{
	 			reason_audit_false_name = "虚假资料";
	 		}
	 		else if(reason_audit_false == "02")
	 		{
	 			reason_audit_false_name = "资质不足";
	 		}
		 }
		 
		 if(event == "auditPre")
		 {
			 audit_detail = $('#pre_audit_detail').val();
	 		 audit_postil = $('#pre_audit_postil').val();
		 }
 		 
 		//询问框
 		layer.confirm('确认执行本次操作？操作人：<span style="color:#BD1723;">${current_user_key.uname}</span>', {
 		  btn: ['确定','取消'] //按钮
 		}, function(){
 			layer.closeAll();
 			$.dpAjax({
	 			url:'${basePath}/FengKongShenHeController/diepuFengKongShenHeV001',
	 			data:{
	 				"event":event,
	 				"id":replaceId,
	 				"busiId":busiId,
	 				"modeId":modeId,
	 				"auditDetail":audit_detail,
	 				"auditPostil":audit_postil,
	 				"orgCode":org_code,
	 				"orgName":org_name,
	 				"remarks":auditRemarks,
	 				"reasonAuditFalse":reason_audit_false,
	 				"reasonAuditFalseName":reason_audit_false_name
	 			},
	 			success: function(datas)
	 			{
	 				  if(datas.flag == "100100")
	 				  {
	 					  layer.msg('审核执行成功！', {icon: 6});
	 					  setTimeout(function(){
	 						 window.location.href = "${basePath}/web/fengKongShenHe/fkshApprovalList.jsp?modeId="+$('#modeId').val();
	 					  },1000);
	 					  return;
	 				  }
	 				  layer.msg(datas.message, {icon: 5});
	 		     }
	 		});
 			
 		}, function(){
 			layer.msg('已取消本次操作！', {icon: 6});
 		});
	  }
	  
	  
	  //下载鑫合汇附件
	  var downloadXhhFile = function()
	  {
		  var busiId = $('#busiId').val();
		  $.dpAjax({
			  	url:'${basePath}/BaseCustomerController/xhhDownload',
	 			data:{"busiId":busiId},
	 			success: function(datas)
	 			{
	 			   var record = datas.result;
	 			   var xhhoperationType = record.xhhOperationType;
				   if(xhhoperationType == 1)
				   {
					   $('#downloadXhh').html('暂无'); 
				   }
				   else if(xhhoperationType == 2)
				   {
					   $('#downloadXhh').html('生成中'); 
				   }
				   else if(xhhoperationType == 3)
				   {
					   window.open(record.xhhRarOssPath);
				   }
				   else if(xhhoperationType == 4)
				   {
					   $('#downloadXhh').html('打包'); 
				   }
	 		    }
	 	  });
	  }
</script>
</body>
</html>
